﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/BaseInfoMaster.master"
    CodeFile="EditReturnVisit.aspx.cs" Inherits="EditReturnVisit" CodeFileBaseClass="Frame.Pages.BaseInfomationEditBasePage" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2.Linq, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Data.Linq" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
    <link type="text/css" rel="stylesheet" href="../Content/Site.css" />
    <link type="text/css" rel="stylesheet" href="../Content/CodeFormatter.css" />
    <script type="text/javascript">
        var textSeparator = ";";
        function GetSelectedItemsText(items) {
            var texts = [];
            for (var i = 0; i < items.length; i++)
                if (items[i].index != 0)
                    texts.push(items[i].text);
            return texts.join(textSeparator);
        }
    </script>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h1 class="DemoTitle">
        客户[<%= (Frame.Pages.RefrenceContext<DAL.BI_Consumer>.Current==null ? string.Empty:Frame.Pages.RefrenceContext<DAL.BI_Consumer>.Current.Model.CName)%>]回访记录管理
        <asp:HyperLink ID="Backlink" runat="server" Text="返回"></asp:HyperLink>
    </h1>
    <div id="DemoArea">
        <div class="Spacer" style="height: 14px;">
        </div>
        <dx:ASPxGridView ID="gridView" runat="server" Width="100%" AutoGenerateColumns="False"
            CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" DataSourceID="LSMDSourceMain"
            KeyFieldName="ReturnVisitID" OnRowInserting="gridView_RowInserting" OnRowUpdating="gridView_RowUpdating">
            <Styles CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx">
                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                </Header>
                <LoadingPanel ImageSpacing="5px">
                </LoadingPanel>
            </Styles>
            <ImagesFilterControl>
                <LoadingPanel Url="~/App_Themes/DevEx/GridView/Loading.gif">
                </LoadingPanel>
            </ImagesFilterControl>
            <Images SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css">
                <LoadingPanelOnStatusBar Url="~/App_Themes/DevEx/GridView/StatusBarLoading.gif">
                </LoadingPanelOnStatusBar>
                <LoadingPanel Url="~/App_Themes/DevEx/GridView/Loading.gif">
                </LoadingPanel>
            </Images>
            <Columns>
                <dx:GridViewDataComboBoxColumn Name="t_Consumer_ID" Visible="false" FieldName="Consumer_ID"
                    VisibleIndex="0" CellStyle-HorizontalAlign="Center" ReadOnly="true" Caption="客户编号">
                    <PropertiesComboBox Native="true" Width="260px">
                        <ValidationSettings CausesValidation="true">
                            <RequiredField IsRequired="true" ErrorText="客户编号不可为空！"></RequiredField>
                        </ValidationSettings>
                    </PropertiesComboBox>
                    <CellStyle HorizontalAlign="Center">
                    </CellStyle>
                </dx:GridViewDataComboBoxColumn>
                <dx:GridViewDataTextColumn Name="t_ReturnVisitID" FieldName="ReturnVisitID" VisibleIndex="1"
                    CellStyle-HorizontalAlign="Right" ReadOnly="true" Caption="自动编码">
                    <PropertiesTextEdit Native="true" Width="260px">
                    </PropertiesTextEdit>
                    <EditFormSettings CaptionLocation="Near" Visible="False"></EditFormSettings>
                    <CellStyle HorizontalAlign="Right">
                    </CellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataDateColumn Name="t_ADDTime" FieldName="ADDTime" VisibleIndex="2"
                    CellStyle-HorizontalAlign="Center" Caption="加入时间">
                    <PropertiesDateEdit Width="260px">
                        <CalendarProperties TodayButtonText="今天" ClearButtonText="清楚">
                        </CalendarProperties>
                    </PropertiesDateEdit>
                    <EditFormSettings CaptionLocation="Near"></EditFormSettings>
                    <CellStyle HorizontalAlign="Center">
                    </CellStyle>
                </dx:GridViewDataDateColumn>
                <dx:GridViewDataMemoColumn Name="t_Remark" FieldName="Remark" VisibleIndex="3" Visible="false"
                    CellStyle-HorizontalAlign="Left" Caption="回访内容">
                    <PropertiesMemoEdit Width="300px" Height="100px">
                    </PropertiesMemoEdit>
                    <EditFormSettings CaptionLocation="Near"></EditFormSettings>
                </dx:GridViewDataMemoColumn>
                <dx:GridViewDataMemoColumn Name="t_FeedBack" FieldName="FeedBack" VisibleIndex="3"
                    CellStyle-HorizontalAlign="Left" Caption="反馈">
                    <PropertiesMemoEdit Width="300px" Height="100px">
                    </PropertiesMemoEdit>
                    <EditFormSettings CaptionLocation="Near"></EditFormSettings>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataMemoColumn>
                <dx:GridViewDataTextColumn Name="t_Remarker" FieldName="Remarker" VisibleIndex="4"
                    CellStyle-HorizontalAlign="Left" Caption="回访人">
                    <PropertiesTextEdit MaxLength="20" Native="true" Width="260px">
                    </PropertiesTextEdit>
                    <EditFormSettings CaptionLocation="Near"></EditFormSettings>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataTextColumn>
            </Columns>
            <Settings ShowPreview="true" />
            <Templates>
                <PreviewRow>
                    回访内容：<%# Eval("Remark") %>
                </PreviewRow>
                <EditForm>
                    <table>
                        <tr>
                            <td>
                                <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="1.知道途径">
                                </dx:ASPxLabel>
                            </td>
                            <td>
                                <dx:ASPxDropDownEdit ClientInstanceName="checkComboBox" ID="ddeKnow" SkinID="CheckComboBox"
                                    Width="210px" runat="server" EnableAnimation="False">
                                    <DropDownWindowStyle BackColor="#EDEDED" />
                                    <DropDownWindowTemplate>
                                        <dx:ASPxListBox Width="100%" ID="listBox" ClientInstanceName="checkListBox" SelectionMode="CheckColumn"
                                            runat="server" SkinID="CheckComboBoxListBox">
                                            <Border BorderStyle="None" />
                                            <BorderBottom BorderStyle="Solid" BorderWidth="1px" BorderColor="#DCDCDC" />
                                            <Items>
                                                <dx:ListEditItem Text="(全选)" />
                                                <dx:ListEditItem Text="宣传页" Value="1" />
                                                <dx:ListEditItem Text="店牌" Value="2" />
                                                <dx:ListEditItem Text="朋友推荐" Value="3" />
                                                <dx:ListEditItem Text="代金券" Value="4" />
                                            </Items>
                                            <ClientSideEvents SelectedIndexChanged="function(s, e){ if (e.index == 0)e.isSelected ? s.SelectAll() : s.UnselectAll();var a;a=true;for(var i = 1; i < checkListBox.GetItemCount(); i++)if(!checkListBox.GetItem(i).selected)a=false;a?checkListBox.SelectIndices([0]):checkListBox.UnselectIndices([0]);var selectedItems = checkListBox.GetSelectedItems();checkComboBox.SetText(GetSelectedItemsText(selectedItems)); }" />
                                        </dx:ASPxListBox>
                                        <table style="width: 100%" cellspacing="0" cellpadding="4">
                                            <tr>
                                                <td align="right">
                                                    <dx:ASPxButton ID="ASPxButton1" AutoPostBack="False" runat="server" Text="关闭">
                                                        <ClientSideEvents Click="function(s, e){ checkComboBox.HideDropDown(); }" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </DropDownWindowTemplate>
                                    <ClientSideEvents TextChanged="function(s, e){ checkListBox.UnselectAll();var texts = s.GetText().split(textSeparator);var actualValues = [];var item;for (var i = 0; i < texts.length; i++){item = checkListBox.FindItemByText(texts[i]);if (item != null)checkListBox.SelectValues(actualValues.push(item.value));}checkListBox.SelectValues(actualValues);var a;a=true;for(var i = 1; i < checkListBox.GetItemCount(); i++)if(!checkListBox.GetItem(i).selected)a=false;a?checkListBox.SelectIndices([0]):checkListBox.UnselectIndices([0]);var selectedItems = checkListBox.GetSelectedItems(); checkComboBox.SetText(GetSelectedItemsText(selectedItems)); }"
                                        DropDown="function(s, e){ checkListBox.UnselectAll();var texts = s.GetText().split(textSeparator);var actualValues = [];var item;for (var i = 0; i < texts.length; i++){item = checkListBox.FindItemByText(texts[i]);if (item != null)checkListBox.SelectValues(actualValues.push(item.value));}checkListBox.SelectValues(actualValues);var a;a=true;for(var i = 1; i < checkListBox.GetItemCount(); i++)if(!checkListBox.GetItem(i).selected)a=false;a?checkListBox.SelectIndices([0]):checkListBox.UnselectIndices([0]);var selectedItems = checkListBox.GetSelectedItems(); checkComboBox.SetText(GetSelectedItemsText(selectedItems)); }" />
                                </dx:ASPxDropDownEdit>
                            </td>
                            <td>
                                <dx:ASPxLabel ID="ASPxLabel2" runat="server" Text="其他：">
                                </dx:ASPxLabel>
                            </td>
                            <td>
                                <dx:ASPxTextBox ID="txtother1" runat="server" Width="170px">
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <dx:ASPxLabel ID="ASPxLabel3" runat="server" Text="2.交通方式">
                                </dx:ASPxLabel>
                            </td>
                            <td>
                                <dx:ASPxDropDownEdit ClientInstanceName="checkComboBox2" ID="ddeTraffic" SkinID="CheckComboBox"
                                    Width="210px" runat="server" EnableAnimation="False">
                                    <DropDownWindowStyle BackColor="#EDEDED" />
                                    <DropDownWindowTemplate>
                                        <dx:ASPxListBox Width="100%" ID="listBox" ClientInstanceName="checkListBox2" SelectionMode="CheckColumn"
                                            runat="server" SkinID="CheckComboBoxListBox">
                                            <Border BorderStyle="None" />
                                            <BorderBottom BorderStyle="Solid" BorderWidth="1px" BorderColor="#DCDCDC" />
                                            <Items>
                                                <dx:ListEditItem Text="(全选)" />
                                                <dx:ListEditItem Text="自驾" Value="1" />
                                                <dx:ListEditItem Text="出租车" Value="2" />
                                                <dx:ListEditItem Text="公交" Value="3" />
                                                <dx:ListEditItem Text="步行" Value="4" />
                                            </Items>
                                            <ClientSideEvents SelectedIndexChanged="function(s, e){ if (e.index == 0)e.isSelected ? s.SelectAll() : s.UnselectAll();var a;a=true;for(var i = 1; i < checkListBox2.GetItemCount(); i++)if(!checkListBox2.GetItem(i).selected)a=false;a?checkListBox2.SelectIndices([0]):checkListBox2.UnselectIndices([0]);var selectedItems = checkListBox2.GetSelectedItems();checkComboBox2.SetText(GetSelectedItemsText(selectedItems)); }" />
                                        </dx:ASPxListBox>
                                        <table style="width: 100%" cellspacing="0" cellpadding="4">
                                            <tr>
                                                <td align="right">
                                                    <dx:ASPxButton ID="ASPxButton1" AutoPostBack="False" runat="server" Text="关闭">
                                                        <ClientSideEvents Click="function(s, e){ checkComboBox2.HideDropDown(); }" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </DropDownWindowTemplate>
                                    <ClientSideEvents TextChanged="function(s, e){ checkListBox2.UnselectAll();var texts = s.GetText().split(textSeparator);var actualValues = [];var item;for (var i = 0; i < texts.length; i++){item = checkListBox2.FindItemByText(texts[i]);if (item != null)checkListBox2.SelectValues(actualValues.push(item.value));}checkListBox2.SelectValues(actualValues);var a;a=true;for(var i = 1; i < checkListBox2.GetItemCount(); i++)if(!checkListBox2.GetItem(i).selected)a=false;a?checkListBox2.SelectIndices([0]):checkListBox2.UnselectIndices([0]);var selectedItems = checkListBox2.GetSelectedItems(); checkComboBox2.SetText(GetSelectedItemsText(selectedItems)); }"
                                        DropDown="function(s, e){ checkListBox2.UnselectAll();var texts = s.GetText().split(textSeparator);var actualValues = [];var item;for (var i = 0; i < texts.length; i++){item = checkListBox2.FindItemByText(texts[i]);if (item != null)checkListBox2.SelectValues(actualValues.push(item.value));}checkListBox2.SelectValues(actualValues);var a;a=true;for(var i = 1; i < checkListBox2.GetItemCount(); i++)if(!checkListBox2.GetItem(i).selected)a=false;a?checkListBox2.SelectIndices([0]):checkListBox2.UnselectIndices([0]);var selectedItems = checkListBox2.GetSelectedItems(); checkComboBox2.SetText(GetSelectedItemsText(selectedItems)); }" />
                                </dx:ASPxDropDownEdit>
                            </td>
                            <td>
                                <dx:ASPxLabel ID="ASPxLabel4" runat="server" Text="其他：">
                                </dx:ASPxLabel>
                            </td>
                            <td>
                                <dx:ASPxTextBox ID="txtother2" runat="server" Width="170px">
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <dx:ASPxLabel ID="ASPxLabel5" runat="server" Text="3.菜品需要改善">
                                </dx:ASPxLabel>
                            </td>
                            <td>
                                <dx:ASPxDropDownEdit ClientInstanceName="checkComboBox3" ID="ddeChange" SkinID="CheckComboBox"
                                    Width="210px" runat="server" EnableAnimation="False">
                                    <DropDownWindowStyle BackColor="#EDEDED" />
                                    <DropDownWindowTemplate>
                                        <dx:ASPxListBox Width="100%" ID="listBox" ClientInstanceName="checkListBox3" SelectionMode="CheckColumn"
                                            runat="server" SkinID="CheckComboBoxListBox">
                                            <Border BorderStyle="None" />
                                            <BorderBottom BorderStyle="Solid" BorderWidth="1px" BorderColor="#DCDCDC" />
                                            <Items>
                                                <dx:ListEditItem Text="(全选)" />
                                                <dx:ListEditItem Text="色泽" Value="1" />
                                                <dx:ListEditItem Text="香味" Value="2" />
                                                <dx:ListEditItem Text="味道" Value="3" />
                                                <dx:ListEditItem Text="形状" Value="4" />
                                                <dx:ListEditItem Text="器皿" Value="5" />
                                                <dx:ListEditItem Text="营养" Value="6" />
                                                <dx:ListEditItem Text="品种" Value="7" />
                                                <dx:ListEditItem Text="份量" Value="8" />
                                                <dx:ListEditItem Text="价格" Value="9" />
                                                <dx:ListEditItem Text="速度" Value="10" />
                                            </Items>
                                            <ClientSideEvents SelectedIndexChanged="function(s, e){ if (e.index == 0)e.isSelected ? s.SelectAll() : s.UnselectAll();var a;a=true;for(var i = 1; i < checkListBox3.GetItemCount(); i++)if(!checkListBox3.GetItem(i).selected)a=false;a?checkListBox3.SelectIndices([0]):checkListBox3.UnselectIndices([0]);var selectedItems = checkListBox3.GetSelectedItems();checkComboBox3.SetText(GetSelectedItemsText(selectedItems)); }" />
                                        </dx:ASPxListBox>
                                        <table style="width: 100%" cellspacing="0" cellpadding="4">
                                            <tr>
                                                <td align="right">
                                                    <dx:ASPxButton ID="ASPxButton1" AutoPostBack="False" runat="server" Text="关闭">
                                                        <ClientSideEvents Click="function(s, e){ checkComboBox3.HideDropDown(); }" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </DropDownWindowTemplate>
                                    <ClientSideEvents TextChanged="function(s, e){ checkListBox3.UnselectAll();var texts = s.GetText().split(textSeparator);var actualValues = [];var item;for (var i = 0; i < texts.length; i++){item = checkListBox3.FindItemByText(texts[i]);if (item != null)checkListBox3.SelectValues(actualValues.push(item.value));}checkListBox3.SelectValues(actualValues);var a;a=true;for(var i = 1; i < checkListBox3.GetItemCount(); i++)if(!checkListBox3.GetItem(i).selected)a=false;a?checkListBox3.SelectIndices([0]):checkListBox3.UnselectIndices([0]);var selectedItems = checkListBox3.GetSelectedItems(); checkComboBox3.SetText(GetSelectedItemsText(selectedItems)); }"
                                        DropDown="function(s, e){ checkListBox3.UnselectAll();var texts = s.GetText().split(textSeparator);var actualValues = [];var item;for (var i = 0; i < texts.length; i++){item = checkListBox3.FindItemByText(texts[i]);if (item != null)checkListBox3.SelectValues(actualValues.push(item.value));}checkListBox3.SelectValues(actualValues);var a;a=true;for(var i = 1; i < checkListBox3.GetItemCount(); i++)if(!checkListBox3.GetItem(i).selected)a=false;a?checkListBox3.SelectIndices([0]):checkListBox3.UnselectIndices([0]);var selectedItems = checkListBox3.GetSelectedItems(); checkComboBox3.SetText(GetSelectedItemsText(selectedItems)); }" />
                                </dx:ASPxDropDownEdit>
                            </td>
                            <td>
                                <dx:ASPxLabel ID="ASPxLabel6" runat="server" Text="其他：">
                                </dx:ASPxLabel>
                            </td>
                            <td>
                                <dx:ASPxTextBox ID="txtother3" runat="server" Width="170px">
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <dx:ASPxLabel ID="ASPxLabel7" runat="server" Text="4.不满意菜品">
                                </dx:ASPxLabel>
                            </td>
                            <td>
                                <dx:ASPxDropDownEdit ClientInstanceName="checkComboBox4" ID="ddeDish" SkinID="CheckComboBox"
                                    Width="210px" runat="server" EnableAnimation="False">
                                    <DropDownWindowStyle BackColor="#EDEDED" />
                                    <DropDownWindowTemplate>
                                        <dx:ASPxListBox Width="100%" ID="listBox" ClientInstanceName="checkListBox4" SelectionMode="CheckColumn"
                                            runat="server" SkinID="CheckComboBoxListBox">
                                            <Border BorderStyle="None" />
                                            <BorderBottom BorderStyle="Solid" BorderWidth="1px" BorderColor="#DCDCDC" />
                                            <Items>
                                                <dx:ListEditItem Text="(全选)" />
                                                <dx:ListEditItem Text="凉菜" Value="1" />
                                                <dx:ListEditItem Text="热菜" Value="2" />
                                                <dx:ListEditItem Text="小吃" Value="3" />
                                                <dx:ListEditItem Text="汤羹" Value="4" />
                                                <dx:ListEditItem Text="面食" Value="5" />
                                                <dx:ListEditItem Text="饭食" Value="6" />
                                                <dx:ListEditItem Text="酒水" Value="7" />
                                            </Items>
                                            <ClientSideEvents SelectedIndexChanged="function(s, e){ if (e.index == 0)e.isSelected ? s.SelectAll() : s.UnselectAll();var a;a=true;for(var i = 1; i < checkListBox4.GetItemCount(); i++)if(!checkListBox4.GetItem(i).selected)a=false;a?checkListBox2.SelectIndices([0]):checkListBox4.UnselectIndices([0]);var selectedItems = checkListBox4.GetSelectedItems();checkComboBox4.SetText(GetSelectedItemsText(selectedItems)); }" />
                                        </dx:ASPxListBox>
                                        <table style="width: 100%" cellspacing="0" cellpadding="4">
                                            <tr>
                                                <td align="right">
                                                    <dx:ASPxButton ID="ASPxButton1" AutoPostBack="False" runat="server" Text="关闭">
                                                        <ClientSideEvents Click="function(s, e){ checkComboBox4.HideDropDown(); }" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </DropDownWindowTemplate>
                                    <ClientSideEvents TextChanged="function(s, e){ checkListBox4.UnselectAll();var texts = s.GetText().split(textSeparator);var actualValues = [];var item;for (var i = 0; i < texts.length; i++){item = checkListBox4.FindItemByText(texts[i]);if (item != null)checkListBox4.SelectValues(actualValues.push(item.value));}checkListBox4.SelectValues(actualValues);var a;a=true;for(var i = 1; i < checkListBox4.GetItemCount(); i++)if(!checkListBox4.GetItem(i).selected)a=false;a?checkListBox4.SelectIndices([0]):checkListBox4.UnselectIndices([0]);var selectedItems = checkListBox4.GetSelectedItems(); checkComboBox4.SetText(GetSelectedItemsText(selectedItems)); }"
                                        DropDown="function(s, e){ checkListBox4.UnselectAll();var texts = s.GetText().split(textSeparator);var actualValues = [];var item;for (var i = 0; i < texts.length; i++){item = checkListBox4.FindItemByText(texts[i]);if (item != null)checkListBox4.SelectValues(actualValues.push(item.value));}checkListBox4.SelectValues(actualValues);var a;a=true;for(var i = 1; i < checkListBox4.GetItemCount(); i++)if(!checkListBox4.GetItem(i).selected)a=false;a?checkListBox4.SelectIndices([0]):checkListBox4.UnselectIndices([0]);var selectedItems = checkListBox4.GetSelectedItems(); checkComboBox4.SetText(GetSelectedItemsText(selectedItems)); }" />
                                </dx:ASPxDropDownEdit>
                            </td>
                            <td>
                                <dx:ASPxLabel ID="ASPxLabel8" runat="server" Text="其他：">
                                </dx:ASPxLabel>
                            </td>
                            <td>
                                <dx:ASPxTextBox ID="txtother4" runat="server" Width="170px">
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <dx:ASPxLabel ID="ASPxLabel9" runat="server" Text="5.不满意服务">
                                </dx:ASPxLabel>
                            </td>
                            <td>
                                <dx:ASPxDropDownEdit ClientInstanceName="checkComboBox5" ID="ddeServer" SkinID="CheckComboBox"
                                    Width="210px" runat="server" EnableAnimation="False">
                                    <DropDownWindowStyle BackColor="#EDEDED" />
                                    <DropDownWindowTemplate>
                                        <dx:ASPxListBox Width="100%" ID="listBox" ClientInstanceName="checkListBox5" SelectionMode="CheckColumn"
                                            runat="server" SkinID="CheckComboBoxListBox">
                                            <Border BorderStyle="None" />
                                            <BorderBottom BorderStyle="Solid" BorderWidth="1px" BorderColor="#DCDCDC" />
                                            <Items>
                                                <dx:ListEditItem Text="(全选)" />
                                                <dx:ListEditItem Text="不主动" Value="1" />
                                                <dx:ListEditItem Text="效率不高" Value="2" />
                                                <dx:ListEditItem Text="不亲切" Value="3" />
                                                <dx:ListEditItem Text="技能低" Value="4" />
                                            </Items>
                                            <ClientSideEvents SelectedIndexChanged="function(s, e){ if (e.index == 0)e.isSelected ? s.SelectAll() : s.UnselectAll();var a;a=true;for(var i = 1; i < checkListBox5.GetItemCount(); i++)if(!checkListBox5.GetItem(i).selected)a=false;a?checkListBox5.SelectIndices([0]):checkListBox5.UnselectIndices([0]);var selectedItems = checkListBox5.GetSelectedItems();checkComboBox5.SetText(GetSelectedItemsText(selectedItems)); }" />
                                        </dx:ASPxListBox>
                                        <table style="width: 100%" cellspacing="0" cellpadding="4">
                                            <tr>
                                                <td align="right">
                                                    <dx:ASPxButton ID="ASPxButton1" AutoPostBack="False" runat="server" Text="关闭">
                                                        <ClientSideEvents Click="function(s, e){ checkComboBox5.HideDropDown(); }" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </DropDownWindowTemplate>
                                    <ClientSideEvents TextChanged="function(s, e){ checkListBox5.UnselectAll();var texts = s.GetText().split(textSeparator);var actualValues = [];var item;for (var i = 0; i < texts.length; i++){item = checkListBox5.FindItemByText(texts[i]);if (item != null)checkListBox5.SelectValues(actualValues.push(item.value));}checkListBox5.SelectValues(actualValues);var a;a=true;for(var i = 1; i < checkListBox5.GetItemCount(); i++)if(!checkListBox5.GetItem(i).selected)a=false;a?checkListBox5.SelectIndices([0]):checkListBox5.UnselectIndices([0]);var selectedItems = checkListBox5.GetSelectedItems(); checkComboBox5.SetText(GetSelectedItemsText(selectedItems)); }"
                                        DropDown="function(s, e){ checkListBox5.UnselectAll();var texts = s.GetText().split(textSeparator);var actualValues = [];var item;for (var i = 0; i < texts.length; i++){item = checkListBox5.FindItemByText(texts[i]);if (item != null)checkListBox5.SelectValues(actualValues.push(item.value));}checkListBox5.SelectValues(actualValues);var a;a=true;for(var i = 1; i < checkListBox5.GetItemCount(); i++)if(!checkListBox5.GetItem(i).selected)a=false;a?checkListBox5.SelectIndices([0]):checkListBox5.UnselectIndices([0]);var selectedItems = checkListBox5.GetSelectedItems(); checkComboBox5.SetText(GetSelectedItemsText(selectedItems)); }" />
                                </dx:ASPxDropDownEdit>
                            </td>
                            <td>
                                <dx:ASPxLabel ID="ASPxLabel10" runat="server" Text="其他：">
                                </dx:ASPxLabel>
                            </td>
                            <td>
                                <dx:ASPxTextBox ID="txtother5" runat="server" Width="170px">
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <dx:ASPxLabel ID="ASPxLabel11" runat="server" Text="6.不满意环境">
                                </dx:ASPxLabel>
                            </td>
                            <td>
                                <dx:ASPxDropDownEdit ClientInstanceName="checkComboBox6" ID="ddeEnvironment" SkinID="CheckComboBox"
                                    Width="210px" runat="server" EnableAnimation="False">
                                    <DropDownWindowStyle BackColor="#EDEDED" />
                                    <DropDownWindowTemplate>
                                        <dx:ASPxListBox Width="100%" ID="listBox" ClientInstanceName="checkListBox6" SelectionMode="CheckColumn"
                                            runat="server" SkinID="CheckComboBoxListBox">
                                            <Border BorderStyle="None" />
                                            <BorderBottom BorderStyle="Solid" BorderWidth="1px" BorderColor="#DCDCDC" />
                                            <Items>
                                                <dx:ListEditItem Text="(全选)" />
                                                <dx:ListEditItem Text="桌椅" Value="1" />
                                                <dx:ListEditItem Text="洗手间" Value="2" />
                                                <dx:ListEditItem Text="温度" Value="3" />
                                                <dx:ListEditItem Text="背景音乐" Value="4" />
                                                <dx:ListEditItem Text="电话信号" Value="5" />
                                            </Items>
                                            <ClientSideEvents SelectedIndexChanged="function(s, e){ if (e.index == 0)e.isSelected ? s.SelectAll() : s.UnselectAll();var a;a=true;for(var i = 1; i < checkListBox6.GetItemCount(); i++)if(!checkListBox6.GetItem(i).selected)a=false;a?checkListBox6.SelectIndices([0]):checkListBox6.UnselectIndices([0]);var selectedItems = checkListBox6.GetSelectedItems();checkComboBox6.SetText(GetSelectedItemsText(selectedItems)); }" />
                                        </dx:ASPxListBox>
                                        <table style="width: 100%" cellspacing="0" cellpadding="4">
                                            <tr>
                                                <td align="right">
                                                    <dx:ASPxButton ID="ASPxButton1" AutoPostBack="False" runat="server" Text="关闭">
                                                        <ClientSideEvents Click="function(s, e){ checkComboBox6.HideDropDown(); }" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </DropDownWindowTemplate>
                                    <ClientSideEvents TextChanged="function(s, e){ checkListBox6.UnselectAll();var texts = s.GetText().split(textSeparator);var actualValues = [];var item;for (var i = 0; i < texts.length; i++){item = checkListBox6.FindItemByText(texts[i]);if (item != null)checkListBox6.SelectValues(actualValues.push(item.value));}checkListBox6.SelectValues(actualValues);var a;a=true;for(var i = 1; i < checkListBox6.GetItemCount(); i++)if(!checkListBox6.GetItem(i).selected)a=false;a?checkListBox6.SelectIndices([0]):checkListBox6.UnselectIndices([0]);var selectedItems = checkListBox6.GetSelectedItems(); checkComboBox6.SetText(GetSelectedItemsText(selectedItems)); }"
                                        DropDown="function(s, e){ checkListBox6.UnselectAll();var texts = s.GetText().split(textSeparator);var actualValues = [];var item;for (var i = 0; i < texts.length; i++){item = checkListBox6.FindItemByText(texts[i]);if (item != null)checkListBox6.SelectValues(actualValues.push(item.value));}checkListBox6.SelectValues(actualValues);var a;a=true;for(var i = 1; i < checkListBox6.GetItemCount(); i++)if(!checkListBox6.GetItem(i).selected)a=false;a?checkListBox6.SelectIndices([0]):checkListBox6.UnselectIndices([0]);var selectedItems = checkListBox6.GetSelectedItems(); checkComboBox6.SetText(GetSelectedItemsText(selectedItems)); }" />
                                </dx:ASPxDropDownEdit>
                            </td>
                            <td>
                                <dx:ASPxLabel ID="ASPxLabel12" runat="server" Text="其他：">
                                </dx:ASPxLabel>
                            </td>
                            <td>
                                <dx:ASPxTextBox ID="txtother6" runat="server" Width="170px">
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <dx:ASPxLabel ID="ASPxLabel14" runat="server" Text="7.继续光临%">
                                </dx:ASPxLabel>
                            </td>
                            <td>
                                <dx:ASPxRadioButtonList ID="rblvisit" runat="server" RepeatDirection="Horizontal">
                                    <Items>
                                        <dx:ListEditItem Text="30%" />
                                        <dx:ListEditItem Text="50%" />
                                        <dx:ListEditItem Text="80%" />
                                        <dx:ListEditItem Text="100%" />
                                    </Items>
                                </dx:ASPxRadioButtonList>
                            </td>
                            <td>
                                <dx:ASPxLabel ID="ASPxLabel13" runat="server" Text="原因：">
                                </dx:ASPxLabel>
                            </td>
                            <td>
                                <dx:ASPxTextBox ID="txtReason" runat="server" Width="170px">
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                    </table>
                    <dx:ASPxGridViewTemplateReplacement ID="Editors" ReplacementType="EditFormEditors"
                        runat="server">
                    </dx:ASPxGridViewTemplateReplacement>
                    <div style="text-align: right; padding: 2px 2px 2px 2px">
                        <dx:ASPxGridViewTemplateReplacement ID="UpdateButton" ReplacementType="EditFormUpdateButton"
                            runat="server">
                        </dx:ASPxGridViewTemplateReplacement>
                        <dx:ASPxGridViewTemplateReplacement ID="CancelButton" ReplacementType="EditFormCancelButton"
                            runat="server">
                        </dx:ASPxGridViewTemplateReplacement>
                    </div>
                </EditForm>
            </Templates>
            <StylesEditors ButtonEditCellSpacing="0">
                <ProgressBar Height="21px">
                </ProgressBar>
            </StylesEditors>
            <SettingsEditing EditFormColumnCount="1" />
        </dx:ASPxGridView>
        <dx:LinqServerModeDataSource ID="LSMDSourceMain" runat="server" EnableDelete="true"
            EnableUpdate="true" EnableInsert="true" ContextTypeName="DAL.CMSDALDataContext"
            TableName="BLI_ReturnVisit" />
    </div>
</asp:Content>
